package com.emergency.db.service;

import com.emergency.common.entity.TreeNode;
import com.emergency.db.domain.Dictionary;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

//数据字典服务
public interface DictionaryService {
    Long save(Dictionary dictionary);

    Dictionary findById(Long id);

    void delete(Long id);

    List<Dictionary> findALL();

    Page<Dictionary> findList(Map searchMap, int page, int size);

    List<TreeNode> getTreeData();

}
